package com.supersonic.backend.viewmodel;

public class ResultResponse {
	private int resultCode;
	private String errorMessage;
	private Object result;
	/**
	 * @return the resultCode
	 */
	public int getResultCode() {
		return resultCode;
	}
	/**
	 * @param resultCode the resultCode to set
	 */
	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}
	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return errorMessage;
	}
	/**
	 * @param errorMessage the errorMessage to set
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	/**
	 * @return the result
	 */
	public Object getResult() {
		return result;
	}
	/**
	 * @param result the result to set
	 */
	public void setResult(Object result) {
		this.result = result;
	}
	
	
	public static final int RESULT_CODE_OK = 0;
	
	public static final int RESULT_CODE_NOT_LOGIN = 1001;
	public static final int RESULT_CODE_INVALID_USER = 1002;
	public static final int RESULT_CODE_NO_ACCESS_RIGHT = 1003;
	
	public static final int RESULT_CODE_DB_ERROR = 9001;
	public static final int RESULT_CODE_API_ERROR = 9002;
	public static final int RESULT_CODE_INTERNAL_EXCEPTION = 9999;
	
	
	
}
